package com.pengpai.pangucms.mapper;

import com.pengpai.pangucms.entity.SysPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author lijunjie
 * @since 2023-07-30
 */
@Mapper
public interface SysPermissionMapper extends BaseMapper<SysPermission> {


    List<SysPermission> getSysPermissionListByUserId(Integer userId);

    List<SysPermission> getSysPermissionTree(Map params);


}
